﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.DataBase.MyProject.Domain.ArrivalCheck
{
    /// <summary>
    /// 到货检验表
    /// </summary>
    [Table("ArrivalCheck")]
    public class ArrivalCheck
    {
        /// <summary>
        /// 质检工单编号
        /// </summary>
        [Key]
        public long Id { get; set; }
        
        /// <summary>
        /// 质检工单主题
        /// </summary>
        public string? Theme { get; set; }

        /// <summary>
        /// 来源ID(采购入库单据Id)
        /// </summary>
        public Guid? SourceId { get; set; }

        /// <summary>
        /// 所有物料名称
        /// </summary>
        public string? MaterialsName {  get; set; }

        /// <summary>
        /// 质检状态 0未完成  1完成
        /// </summary>
        public int? CheckStatus { get; set; } = 0;
        /// <summary>
        /// 质检部门Id
        /// </summary>
        public int? CheckDempt { get; set; }

        /// <summary>
        /// 质检负责人
        /// </summary>
        public string? CheckUser { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string? Remark { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string? CreateUser { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }=DateTime.Now;

        /// <summary>
        /// 修改人
        /// </summary>
        public string? UpdateUser { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime UpdateTime { get; set; }=DateTime.Now;
    }
}
